package cn.ito.zjgsu.domain;

import java.util.ArrayList;
import java.util.List;

public class ProjectStateExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public ProjectStateExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andPecomposedIsNull() {
            addCriterion("pecomposed is null");
            return (Criteria) this;
        }

        public Criteria andPecomposedIsNotNull() {
            addCriterion("pecomposed is not null");
            return (Criteria) this;
        }

        public Criteria andPecomposedEqualTo(Boolean value) {
            addCriterion("pecomposed =", value, "pecomposed");
            return (Criteria) this;
        }

        public Criteria andPecomposedNotEqualTo(Boolean value) {
            addCriterion("pecomposed <>", value, "pecomposed");
            return (Criteria) this;
        }

        public Criteria andPecomposedGreaterThan(Boolean value) {
            addCriterion("pecomposed >", value, "pecomposed");
            return (Criteria) this;
        }

        public Criteria andPecomposedGreaterThanOrEqualTo(Boolean value) {
            addCriterion("pecomposed >=", value, "pecomposed");
            return (Criteria) this;
        }

        public Criteria andPecomposedLessThan(Boolean value) {
            addCriterion("pecomposed <", value, "pecomposed");
            return (Criteria) this;
        }

        public Criteria andPecomposedLessThanOrEqualTo(Boolean value) {
            addCriterion("pecomposed <=", value, "pecomposed");
            return (Criteria) this;
        }

        public Criteria andPecomposedIn(List<Boolean> values) {
            addCriterion("pecomposed in", values, "pecomposed");
            return (Criteria) this;
        }

        public Criteria andPecomposedNotIn(List<Boolean> values) {
            addCriterion("pecomposed not in", values, "pecomposed");
            return (Criteria) this;
        }

        public Criteria andPecomposedBetween(Boolean value1, Boolean value2) {
            addCriterion("pecomposed between", value1, value2, "pecomposed");
            return (Criteria) this;
        }

        public Criteria andPecomposedNotBetween(Boolean value1, Boolean value2) {
            addCriterion("pecomposed not between", value1, value2, "pecomposed");
            return (Criteria) this;
        }

        public Criteria andExaminedIsNull() {
            addCriterion("examined is null");
            return (Criteria) this;
        }

        public Criteria andExaminedIsNotNull() {
            addCriterion("examined is not null");
            return (Criteria) this;
        }

        public Criteria andExaminedEqualTo(Boolean value) {
            addCriterion("examined =", value, "examined");
            return (Criteria) this;
        }

        public Criteria andExaminedNotEqualTo(Boolean value) {
            addCriterion("examined <>", value, "examined");
            return (Criteria) this;
        }

        public Criteria andExaminedGreaterThan(Boolean value) {
            addCriterion("examined >", value, "examined");
            return (Criteria) this;
        }

        public Criteria andExaminedGreaterThanOrEqualTo(Boolean value) {
            addCriterion("examined >=", value, "examined");
            return (Criteria) this;
        }

        public Criteria andExaminedLessThan(Boolean value) {
            addCriterion("examined <", value, "examined");
            return (Criteria) this;
        }

        public Criteria andExaminedLessThanOrEqualTo(Boolean value) {
            addCriterion("examined <=", value, "examined");
            return (Criteria) this;
        }

        public Criteria andExaminedIn(List<Boolean> values) {
            addCriterion("examined in", values, "examined");
            return (Criteria) this;
        }

        public Criteria andExaminedNotIn(List<Boolean> values) {
            addCriterion("examined not in", values, "examined");
            return (Criteria) this;
        }

        public Criteria andExaminedBetween(Boolean value1, Boolean value2) {
            addCriterion("examined between", value1, value2, "examined");
            return (Criteria) this;
        }

        public Criteria andExaminedNotBetween(Boolean value1, Boolean value2) {
            addCriterion("examined not between", value1, value2, "examined");
            return (Criteria) this;
        }

        public Criteria andStampdIsNull() {
            addCriterion("stampd is null");
            return (Criteria) this;
        }

        public Criteria andStampdIsNotNull() {
            addCriterion("stampd is not null");
            return (Criteria) this;
        }

        public Criteria andStampdEqualTo(Boolean value) {
            addCriterion("stampd =", value, "stampd");
            return (Criteria) this;
        }

        public Criteria andStampdNotEqualTo(Boolean value) {
            addCriterion("stampd <>", value, "stampd");
            return (Criteria) this;
        }

        public Criteria andStampdGreaterThan(Boolean value) {
            addCriterion("stampd >", value, "stampd");
            return (Criteria) this;
        }

        public Criteria andStampdGreaterThanOrEqualTo(Boolean value) {
            addCriterion("stampd >=", value, "stampd");
            return (Criteria) this;
        }

        public Criteria andStampdLessThan(Boolean value) {
            addCriterion("stampd <", value, "stampd");
            return (Criteria) this;
        }

        public Criteria andStampdLessThanOrEqualTo(Boolean value) {
            addCriterion("stampd <=", value, "stampd");
            return (Criteria) this;
        }

        public Criteria andStampdIn(List<Boolean> values) {
            addCriterion("stampd in", values, "stampd");
            return (Criteria) this;
        }

        public Criteria andStampdNotIn(List<Boolean> values) {
            addCriterion("stampd not in", values, "stampd");
            return (Criteria) this;
        }

        public Criteria andStampdBetween(Boolean value1, Boolean value2) {
            addCriterion("stampd between", value1, value2, "stampd");
            return (Criteria) this;
        }

        public Criteria andStampdNotBetween(Boolean value1, Boolean value2) {
            addCriterion("stampd not between", value1, value2, "stampd");
            return (Criteria) this;
        }

        public Criteria andArchivedIsNull() {
            addCriterion("archived is null");
            return (Criteria) this;
        }

        public Criteria andArchivedIsNotNull() {
            addCriterion("archived is not null");
            return (Criteria) this;
        }

        public Criteria andArchivedEqualTo(Boolean value) {
            addCriterion("archived =", value, "archived");
            return (Criteria) this;
        }

        public Criteria andArchivedNotEqualTo(Boolean value) {
            addCriterion("archived <>", value, "archived");
            return (Criteria) this;
        }

        public Criteria andArchivedGreaterThan(Boolean value) {
            addCriterion("archived >", value, "archived");
            return (Criteria) this;
        }

        public Criteria andArchivedGreaterThanOrEqualTo(Boolean value) {
            addCriterion("archived >=", value, "archived");
            return (Criteria) this;
        }

        public Criteria andArchivedLessThan(Boolean value) {
            addCriterion("archived <", value, "archived");
            return (Criteria) this;
        }

        public Criteria andArchivedLessThanOrEqualTo(Boolean value) {
            addCriterion("archived <=", value, "archived");
            return (Criteria) this;
        }

        public Criteria andArchivedIn(List<Boolean> values) {
            addCriterion("archived in", values, "archived");
            return (Criteria) this;
        }

        public Criteria andArchivedNotIn(List<Boolean> values) {
            addCriterion("archived not in", values, "archived");
            return (Criteria) this;
        }

        public Criteria andArchivedBetween(Boolean value1, Boolean value2) {
            addCriterion("archived between", value1, value2, "archived");
            return (Criteria) this;
        }

        public Criteria andArchivedNotBetween(Boolean value1, Boolean value2) {
            addCriterion("archived not between", value1, value2, "archived");
            return (Criteria) this;
        }

        public Criteria andUndertakedIsNull() {
            addCriterion("undertaked is null");
            return (Criteria) this;
        }

        public Criteria andUndertakedIsNotNull() {
            addCriterion("undertaked is not null");
            return (Criteria) this;
        }

        public Criteria andUndertakedEqualTo(Boolean value) {
            addCriterion("undertaked =", value, "undertaked");
            return (Criteria) this;
        }

        public Criteria andUndertakedNotEqualTo(Boolean value) {
            addCriterion("undertaked <>", value, "undertaked");
            return (Criteria) this;
        }

        public Criteria andUndertakedGreaterThan(Boolean value) {
            addCriterion("undertaked >", value, "undertaked");
            return (Criteria) this;
        }

        public Criteria andUndertakedGreaterThanOrEqualTo(Boolean value) {
            addCriterion("undertaked >=", value, "undertaked");
            return (Criteria) this;
        }

        public Criteria andUndertakedLessThan(Boolean value) {
            addCriterion("undertaked <", value, "undertaked");
            return (Criteria) this;
        }

        public Criteria andUndertakedLessThanOrEqualTo(Boolean value) {
            addCriterion("undertaked <=", value, "undertaked");
            return (Criteria) this;
        }

        public Criteria andUndertakedIn(List<Boolean> values) {
            addCriterion("undertaked in", values, "undertaked");
            return (Criteria) this;
        }

        public Criteria andUndertakedNotIn(List<Boolean> values) {
            addCriterion("undertaked not in", values, "undertaked");
            return (Criteria) this;
        }

        public Criteria andUndertakedBetween(Boolean value1, Boolean value2) {
            addCriterion("undertaked between", value1, value2, "undertaked");
            return (Criteria) this;
        }

        public Criteria andUndertakedNotBetween(Boolean value1, Boolean value2) {
            addCriterion("undertaked not between", value1, value2, "undertaked");
            return (Criteria) this;
        }

        public Criteria andProjectidIsNull() {
            addCriterion("projectid is null");
            return (Criteria) this;
        }

        public Criteria andProjectidIsNotNull() {
            addCriterion("projectid is not null");
            return (Criteria) this;
        }

        public Criteria andProjectidEqualTo(Integer value) {
            addCriterion("projectid =", value, "projectid");
            return (Criteria) this;
        }

        public Criteria andProjectidNotEqualTo(Integer value) {
            addCriterion("projectid <>", value, "projectid");
            return (Criteria) this;
        }

        public Criteria andProjectidGreaterThan(Integer value) {
            addCriterion("projectid >", value, "projectid");
            return (Criteria) this;
        }

        public Criteria andProjectidGreaterThanOrEqualTo(Integer value) {
            addCriterion("projectid >=", value, "projectid");
            return (Criteria) this;
        }

        public Criteria andProjectidLessThan(Integer value) {
            addCriterion("projectid <", value, "projectid");
            return (Criteria) this;
        }

        public Criteria andProjectidLessThanOrEqualTo(Integer value) {
            addCriterion("projectid <=", value, "projectid");
            return (Criteria) this;
        }

        public Criteria andProjectidIn(List<Integer> values) {
            addCriterion("projectid in", values, "projectid");
            return (Criteria) this;
        }

        public Criteria andProjectidNotIn(List<Integer> values) {
            addCriterion("projectid not in", values, "projectid");
            return (Criteria) this;
        }

        public Criteria andProjectidBetween(Integer value1, Integer value2) {
            addCriterion("projectid between", value1, value2, "projectid");
            return (Criteria) this;
        }

        public Criteria andProjectidNotBetween(Integer value1, Integer value2) {
            addCriterion("projectid not between", value1, value2, "projectid");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}